package com.entity.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author chenmo
 * @since 2022-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Categories对象", description="")
public class Categories implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "目录id")
    @TableId(value = "categoryId", type = IdType.AUTO)
    private Integer categoryId;

    @ApiModelProperty(value = "目录名称")
    @TableField("categoryName")
    private String categoryName;

    @ApiModelProperty(value = "目录代码")
    @TableField("categoryCode")
    private String categoryCode;

    @ApiModelProperty(value = "属于课程id")
    @TableField("courseId")
    private Integer courseId;

    @ApiModelProperty(value = "属于课程（研究对象关系）")
    @TableField("courseName")
    private String courseName;

    @ApiModelProperty(value = "排序字段，课程id相当于页码，本字段相当于偏移量")
    @TableField("positionId")
    private Integer positionId;

    @ApiModelProperty(value = "后继目录名称字符串，以冒号分隔，实际关系存在目录关系表中")
    @TableField("nextCategoryStr")
    private String nextCategoryStr;

    @ApiModelProperty(value = "属性键")
    @TableField("propertiesKey")
    private String propertiesKey;

    @ApiModelProperty(value = "属性值")
    @TableField("propertiesValue")
    private String propertiesValue;

    @ApiModelProperty(value = "创建人工号")
    @TableField("createdBy")
    private String createdBy;

    @ApiModelProperty(value = "创建人姓名")
    @TableField("createdByName")
    private String createdByName;

    @TableLogic
    @TableField(value = "isDeleted", fill = FieldFill.INSERT)
    private Integer isDeleted;

    @TableField(value = "createTime", fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间", example = "2019-01-01 10:10:10")
    private Date createTime;

    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更改时间", example = "2019-02-01 10:10:10")
    private Date updateTime;
}
